﻿<Window x:Class="Okazuki.BehaviorSupport.Design.Commons.ActionSelectWindow"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
        Title="Select Trigger and Action" Height="300" Width="300" WindowStartupLocation="CenterScreen">
    <Window.Resources>
        <DataTemplate x:Key="typeTemplate">
            <StackPanel Orientation="Horizontal" ToolTip="{Binding FullName}">
                <TextBlock Text="{Binding Name}" />
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <TextBlock HorizontalAlignment="Left" Margin="12,12,0,0" Text="Triggers" VerticalAlignment="Top" />
        <ComboBox Height="24" Margin="65,6,12,0" Name="comboBoxTriggers" VerticalAlignment="Top" ItemTemplate="{StaticResource typeTemplate}" />
        <TextBlock HorizontalAlignment="Left" Margin="12,36,0,0" Text="Actions" VerticalAlignment="Top" />
        <ListBox Margin="12,60,12,41" Name="listBoxActions" ItemTemplate="{StaticResource typeTemplate}" />
        <Button Content="OK" Height="23" HorizontalAlignment="Right" Margin="0,0,93,12" Name="buttonOk" VerticalAlignment="Bottom" Width="75" IsDefault="True" Click="buttonOk_Click" />
        <Button Content="Cancel" HorizontalAlignment="Right" Margin="0,0,12,12" Name="buttonCancel" Width="75" Height="23" VerticalAlignment="Bottom" IsCancel="True" Click="buttonCancel_Click" />
    </Grid>
</Window>
